
this.axios.delete(`/goods/${item.id}`).then(
    res => {
      const code = Number(res.data.code)
      if (code === 200) {
        this.$message(this.mes.success)
      } else {
        this.$message(this.mes.busy)
      }
    }
  ).catch(
    err => {
      this.$message(this.mes.err)
    }
  )
  const queryString = require('querystring')
  this.axios.get('/goods?' + queryString.stringify(params)).then((res) => {
    const code = Number(res.data.code)
    if (code === 200) {
      this.goodsInfoList = res.data.data.list
      this.pageShow = this.goodsInfoList.length > 20
    } else {
      this.$message(this.mes.busy)
    }
}).catch((err) => {
  console.log(err)
  this.$message(this.mes.busy)
})

this.axios.update(`/goods`, queryString.stringify(this.goodsInfo)).then((res) => {
  const code = Number(res.data.code)
  if (code === 200) {
    this.$message(this.mes.success)
  } else {
    this.$message(this.mes.busy)
  }
}).catch((err) => {
  console.log(err)
  this.$message(this.mes.busy)
})

this.axios.post('/goods', queryString.stringify(this.goodsInfo)).then((res) => {
  const code = Number(res.data.code)
  if (code === 200) {
    this.$message(this.mes.success)
  } else {
    this.$message(this.mes.busy)
  }
}).catch((err) => {
  console.log(err)
  this.$message(this.mes.busy)
})